<script>
  import StatusMonitor from 'utils/monitor/StatusMonitor'
  import asyncRequest from "./utils/network/asyncRequest";
  import cacheLoader from "./utils/file/cacheLoader";

  export default {
    mixins: [StatusMonitor, cacheLoader],  // 注册一个全局的状态监控
    onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
    beforeMount() {
      asyncRequest.cleanTask()
      this.loadAllCache()
    },
    beforeDestroy() {
      asyncRequest.cleanInterval()
    }
  }
</script>

<style lang="scss">
	/*每个页面公共css */
  @import "uview-ui/index.scss";
  @import "@/style/uni-common.css";
  @import "@/style/common.css";

</style>
